package com.wxtl.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Content entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "content", catalog = "upweb")
public class Content implements java.io.Serializable {

	// Fields

	private Integer contentId;
	private String content;
	private String wholeContent;
	private Integer parentId;

	// Constructors

	/** default constructor */
	public Content() {
	}

	/** full constructor */
	public Content(String content, String wholeContent,Integer contentId, Integer parentId) {
		this.content = content;
		this.wholeContent = wholeContent;
		this.contentId = contentId;
		this.parentId = parentId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "contentId", unique = true, nullable = false)
	public Integer getContentId() {
		return this.contentId;
	}

	public void setContentId(Integer contentId) {
		this.contentId = contentId;
	}

	@Column(name = "content", length = 20)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "wholeContent", length = 500)
	public String getWholeContent() {
		return this.wholeContent;
	}

	public void setWholeContent(String wholeContent) {
		this.wholeContent = wholeContent;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

}